#region Imports

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.ComponentModel;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using MetaSapiens.PageMethods;

#endregion Imports

namespace WebApplication
{
	public partial class WebForm1 : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			PageMethodsEngine.InvokeMethod(this, true);
		}

		[PageMethod(true)]
		public void Method1(int i, bool b)
		{
			Label1.Text = String.Format("Method1({0}, {1})", i, b);
		}

		[PageMethod]
		public void Method2(String s)
		{
			Label1.Text = String.Format("Method2({0})", s);
		}

		[PageMethod]
		public void DisplayCustomObjectWithSpecificTypeConverter([ParamRequired, TypeConverter("WebApplication.SpecificTypeConverter, WebApplication")] System.Drawing.Point value)
		{
			Label1.Text = "Point(" + value.X + ", " + value.Y + ")";
		}
	}
}
